package com.dayu.basic.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dayu.basic.mapper.BasicClientMapper;
import com.dayu.basic.domain.BasicClient;
import com.dayu.basic.service.IBasicClientService;

/**
 * 客户管理Service业务层处理
 * 
 * @author HK
 * @date 2021-04-15
 */
@Service
public class BasicClientServiceImpl implements IBasicClientService 
{
    @Autowired
    private BasicClientMapper basicClientMapper;

    /**
     * 查询客户管理
     * 
     * @param clientId 客户管理ID
     * @return 客户管理
     */
    @Override
    public BasicClient selectBasicClientById(Long clientId)
    {
        return basicClientMapper.selectBasicClientById(clientId);
    }

    /**
     * 查询客户管理列表
     * 
     * @param basicClient 客户管理
     * @return 客户管理
     */
    @Override
    public List<BasicClient> selectBasicClientList(BasicClient basicClient)
    {
        return basicClientMapper.selectBasicClientList(basicClient);
    }

    /**
     * 新增客户管理
     * 
     * @param basicClient 客户管理
     * @return 结果
     */
    @Override
    public int insertBasicClient(BasicClient basicClient)
    {
        return basicClientMapper.insertBasicClient(basicClient);
    }

    /**
     * 修改客户管理
     * 
     * @param basicClient 客户管理
     * @return 结果
     */
    @Override
    public int updateBasicClient(BasicClient basicClient)
    {
        return basicClientMapper.updateBasicClient(basicClient);
    }

    /**
     * 批量删除客户管理
     * 
     * @param clientIds 需要删除的客户管理ID
     * @return 结果
     */
    @Override
    public int deleteBasicClientByIds(Long[] clientIds)
    {
        return basicClientMapper.deleteBasicClientByIds(clientIds);
    }

    /**
     * 删除客户管理信息
     * 
     * @param clientId 客户管理ID
     * @return 结果
     */
    @Override
    public int deleteBasicClientById(Long clientId)
    {
        return basicClientMapper.deleteBasicClientById(clientId);
    }
}
